package mythread.a07threadmethod4;

import mythread.a01threadcase1.MyTread;

public class TreadDemo {
    /*
        public static void yield()      出让线程/礼让线程
     */
    public static void main(String[] args) {
        MyTread t1 = new MyTread();
        MyTread t2 = new MyTread();

        t1.setName("飞机");
        t2.setName("坦克");

        t1.start();
        t2.start();
    }





}
